using System.IO;

namespace PodInvaders
{
	public class IPod
	{
		private string _name;
		private string _drive;

		public IPod(string Name, string Drive)
		{
			_drive = Drive;
			_name = Name;
		}

		public string Name
		{
			get
			{
				return _name;
			}
		}

		public string MusicRoot
		{
			get
			{
                if (Directory.Exists(_drive + @"\iPod_Control\Music"))
                    return _drive + @"\iPod_Control\Music";
                else
				    return _drive;
			}
		}

		public override string ToString()
		{
			return Name;
		}
	}
}